import { gettableData, getExpertList } from "@/api/api";
export default {
  name: 'expert',
  components: {}, 
  props: [],
  data () {
    return {
      expertList:[],
      getData:[],
      getName:[]
    }
  },
  computed: {

  },
  mounted () {

  },
  created(){
    this._getExpertList();
    this._gettableData()
  },
  methods: {
    // 分类列表
    _gettableData(){
      gettableData().then(res=>{
        console.log(res.data)
        this.getData = res.data.classification.slice(0,10);
        this.getName = res.data.technical
      })
    },
    // 专家列表
    _getExpertList() {
      getExpertList().then(res => {
        // console.log(res.data)
        this.expertList = res.data
      })
    }
  }
}
